package com.chen.apiboos.controller;

import com.chen.apiboos.service.CarService;
import com.chen.internalcommon.dto.Car;
import com.chen.internalcommon.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author chenLiuPing
 **/
@RestController
public class CarController {
    @Autowired
    private CarService carService;

    /**
     * 添加司机信息
     */
    @PostMapping("/car")
    public ResponseResult addCar(@RequestBody Car car) {
        return carService.addCar(car);
    }
}
